package com.cooper.scraper;

import java.util.List;

import com.cooper.android.comm.Resource;

public class BrowseResourceDescCollector<T extends Resource> extends
		ResourceCollector<T> {

	//PageCount init to scraper

	public BrowseResourceDescCollector(String scraperId, List<String> removeIds) {
		super(scraperId, removeIds);
	}

	public BrowseResourceDescCollector(String scraperId) {
		super(scraperId);
	}

	@Override
	public boolean EOF() {
		return (1 > pageNumber);
	}

	@Override
	public boolean hasNextPage() {
		return (pageNumber > 1);
	}

	@Override
	public void nextPage() {
		pageNumber--;
	}

	@Override
	protected void resetPageCount(){
		pageNumber = pageCount;
	}
	
	@Override
	public int getCurrPageNumber(){
		return pageCount - pageNumber;
	}


}
